<?php defined('IN_LK') or die('Access Denied');?>
<?php include self::admin_t('header');?>
<dl class="form_list">
<form action="?m=admin&c=index&a=edit_user" method="post" id="myform">
  <dd><span class="left w8">用户名</span><span class="green"><?php echo $username?></span></dd>
  <dd><span class="left w8">最后登录时间</span><span class="green"><?php echo $lastlogintime?></span></dd>
  <dd><span class="left w8">最后登录ip</span><span class="green"><?php echo $lastloginip?></span></dd>
  <dd><span class="left w8">email</span>
    <input type="text" class="input" size="30" name="email" id="email" value="<?php echo $email;?>" />
  </dd>
  <dd>
    <input type="submit" class="btn" name="dosubmit" id="dosubmit" value="提交" />
    <input type="reset" class="btn" value="重置" />
  </dd>
</form>
</dl>
<script type="text/javascript">
$(function()
{
	$.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
	$("#email").formValidator({onshow:"请输入E-mail",onfocus:"请输入E-mail",oncorrect:"E-mail格式正确"}).regexValidator({regexp:"email",datatype:"enum",onerror:"E-mail格式错误"}).ajaxValidator({
	    type : "get",
		url : "",
		data :"m=admin&c=index&a=check_email_ajax",
		datatype : "html",
		async:'false',
		success : function(data){
            if( data == "1" )
			{
                return true;
			}
            else
			{
                return false;
			}
		},
		buttons: $("#dosubmit"),
		onerror : "该邮箱已经存在",
		onwait : "请稍候..."
	}).defaultPassed();
});
</script>
<?php include self::admin_t('footer');?>
